package Demo2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 殇
 * Date: 2025-07-11
 * Time: 21:56
 */
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException{
        Person p1=new Person(18);
        Person p2=(Person)p1.clone();



        System.out.println(p1.m.money);
        System.out.println(p2.m.money);

        System.out.println("=====================");

        p2.m.money=99.99;
        System.out.println(p1.m.money);
        System.out.println(p2.m.money);

    }
}
